<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.studeInfo{
				width: 100%;
				margin: 25px 0;
				padding-left: 25px;
				font-family: "微软雅黑";
				font-size: 2em;
				font-weight: bolder;
			}
		</style>
		<script src="js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="studeInfo">
			学员考试情况
			<div class="print">
				<button id="print" class="btn btn-default">打印</button>
			</div>
		</div>
		<div id="anw">
			<!-- "id":"100",
		"username":"张三",
		"examtype":"java",
		"tel":"12345678912",
		"completetime":"2018-05-16",
		"score":"60",-->
			<div class="ctable">
				<table class="table table-bordered">
					<thead>
						<tr><th>id</th><th>姓名</th><th>科目</th><th>联系方式</th><th>提交时间</th><th>得分</th></tr>
					</thead>
					<tbody>
						<tr><td>{{id}}</td><td>{{username}}</td><td>{{examtype}}</td><td>{{tel}}</td><td>{{completetime}}</td><td>{{score}}</td></tr>
					</tbody>
				</table>
			</div>
			<div class="quest" ng-repeat="qu in subject" >
				<div class="basic">
					<div class="item">
						{{qu.id}}:
					</div>
					<div class="item">
						{{qu.type}}
					</div>
					<div class="item">
						回答：{{qu.ac}}
					</div>
					<div class="glyphicon {{qu.result}}"></div>
					
				</div>
				<div class="qu">
					{{qu.question}}
				</div>
				<ul>
					<li ng-repeat="aqu in qu.aqus ">
						{{aqu.t}}:{{aqu.q}}
					</li>
				<ul>
			
			</div>
		</div>
	</body>
	<script type="text/javascript">
		$(function(){ // 打印
			$("#print").click(function(){
				var html = document.getElementById("anw").innerHTML;
				var old = document.body.innerHTML;
				document.body.innerHTML = html;
				window.print();
				document.body.innerHTML = old;
			});
		});

	</script>
</html>
